using System;
using Tomahawk.Runtime;

namespace Tutorial02
{
    static class Program
    {
        static void Main(string[] args)
        {
            //subscribe to engine events
            Engine.Instance.OnAfterInitialize += new Engine.EngineNotification(Instance_OnAfterInitialize);
            Engine.Instance.OnBeforeInitialize += new Engine.EngineNotification(Instance_OnBeforeInitialize);

            //start the engine
            Engine.Instance.Run();
        }

        static void Instance_OnBeforeInitialize()
        {
            //Set the default camera as active
            Engine.Instance.CameraManager.SetActiveCamera("default");
        }

        static void Instance_OnAfterInitialize()
        {
            //This is actually where our game code will start
            GameState state = new Gameplay();
            state.Load();
        }
    }
}